import styled from "styled-components";

export const Wrapper = styled.div`
    .top {
        justify-content: space-between;
    }

    .no-data {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .no-data img {
        margin: 160px auto 22px auto;
        width: 400px;
    }

    .homework-list {
        padding-top: 16px;
        border: 1px solid #e7ebf0;
        border-radius: 8px;
        margin-top: 8px;
        margin-bottom: 10px;
    }
`;

export const HomeworkItemWrapper = styled.div`
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 0 16px;
    background: #fff;
    overflow: hidden;

    .content {
        width: 100%;
        background: #fff;
        display: flex;
        position: relative;
        text-align: start;

        .left {
            display: flex;
            align-items: center;
            flex-direction: column;
            min-width: 85px;
            margin-right: 16px;
            font-size: 12px;

            img {
                height: 40px;
                max-width: 40px;
                margin-bottom: 10px;
            }

            .another-name {
                position: relative;
                margin-top: 5px;
                line-height: 13px;
                display: inline-block;
                width: 85px;
                text-align: center;
                max-height: 31px;
                margin-bottom: 2px;

                span {
                    color: #3c4043;
                    font-size: 13px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    max-width: 65px;
                    max-height: 30px;
                    line-height: 15px;
                    word-break: break-all;
                    display: inline-block;
                    text-align: center;
                }
            }
        }

        .right {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            width: 100%;
            border-bottom: 1px solid #eee;
            padding: 0 0 4px;
            font-size: 14px;

            .info {
                .title {
                    font-size: 16px;
                    margin-bottom: 12px;
                    max-width: 500px;
                    cursor: pointer;
                    color: #212121;
                    display: -webkit-box;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    word-break: break-all;
                    white-space: normal;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;
                }

                .sub-bar {
                    color: #5f6368;
                    font-size: 12px;

                    .divider {
                        background-color: #dadce0;
                        display: inline-block;
                        width: 1px;
                        height: 1em;
                        margin: 0 8px;
                        vertical-align: middle;
                        position: relative;
                    }
                }

            }

            .function {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex: 1;
                font-size: 12px;

                .situation {
                    display: flex;
                    justify-content: center;
                    border-right: 1px solid #e7ebf0;

                    .item-info {
                        text-align: center;
                        cursor: pointer;
                        overflow: hidden;
                        min-width: 72px;

                        i {
                            color: #4285f4;
                        }

                        .font-color--main {
                            display: block;
                            font-size: 20px;
                        }

                        .pt-text {
                            font-size: 12px;
                            color: #202124;
                        }
                    }
                }

                .settings {
                    position: relative;
                    top: 6px;
                    text-align: center;
                    cursor: pointer;
                    display: block;
                    min-width: 72px;

                    div {
                        display: block;
                        padding-top: 3px;
                        padding-bottom: 3px;
                        color: #202124;
                        font-size: 12px;
                    }
                }
            }

        }
    }
`;
